import { DashboardResponse } from '../types/dashboard';

export const getDashboardData = async (): Promise<DashboardResponse> => {
  // 模拟API调用
  return {
    stats: {
      code: 0,
      message: 'success',
      data: {
        userCount: 156,
        reportCount: 89
      }
    },
    distribution: {
      code: 0,
      message: 'success',
      data: [
        { type: '产业报告', value: 45 },
        { type: '企业报告', value: 30 },
        { type: '技术报告', value: 25 }
      ]
    },
    activities: {
      code: 0,
      message: 'success',
      data: [
        {
          id: '1',
          type: 'report',
          title: '2024年产业发展报告',
          time: '2024-03-15 14:30'
        },
        {
          id: '2',
          type: 'chat',
          title: '关于产业政策的咨询',
          time: '2024-03-15 10:20'
        }
      ]
    }
  };
}; 